﻿#include "TurnTableState.h"

TurnTableState::TurnTableState()
{

}

TurnTableState::TurnTableState(TurnTableState const& turnTableState)
{
  *this=turnTableState;
}

TurnTableState& TurnTableState::operator=(TurnTableState const& turnTableState)
{
  turnTableConnectionState = turnTableState.turnTableConnectionState;//转台连接状态位
  thermostatConnectionState = turnTableState.thermostatConnectionState;//温箱连接状态位

  turnTableLoadMode = turnTableState.turnTableLoadMode;//负载状态位
  turnTablePositionModeState = turnTableState.turnTablePositionModeState;//位置是否达到状态位
  turnTableRateModeState = turnTableState.turnTableRateModeState;//速率是否达到状态位
  turnTableStopState = turnTableState.turnTableStopState;//停止是否达到状态位
  turnTablePowerSupplyState = turnTableState.turnTablePowerSupplyState; //转台电源供应状态位
  turnTableCircuitState = turnTableState.turnTableCircuitState; //转台电路状态位
  turnTableAmplifierState = turnTableState.turnTableAmplifierState; //转台功放机状态位
  turnTableRunningState = turnTableState.turnTableRunningState;//转台运行状态位
  turnTableSearchZeroState = turnTableState.turnTableSearchZeroState;//转台寻零状态位
  turnTableRunningMode = turnTableState.turnTableRunningMode;//转台运行模式状态位

  turnTableCurrentPosition = turnTableState.turnTableCurrentPosition;//转台当前位置
  turnTableCurrentRate = turnTableState.turnTableCurrentRate;//转台当前速率
  turnTableTargetPosition = turnTableState.turnTableTargetPosition;//目标位置
  turnTableTargetRate = turnTableState.turnTableTargetRate;//目标速率
  turnTableTargetAcceleration = turnTableState.turnTableTargetAcceleration;//目标加速度

  thermostatCurrentTemperature = turnTableState.thermostatCurrentTemperature;//温箱当前温度
  thermostatTargetTemperature = turnTableState.thermostatTargetTemperature;//温箱目标温度
  thermostatTemperatureRate = turnTableState.thermostatTemperatureRate;//温箱变温速率
  return *this;
}

TurnTableState::~TurnTableState()
{

}

TurnTableCodec::ConnectionState TurnTableState::getTurnTableConnectionState()
{
  return turnTableConnectionState;
}

TurnTableState* TurnTableState::setTurnTableConnectionState(TurnTableCodec::ConnectionState turnTableConnectionState)
{
  this->turnTableConnectionState=turnTableConnectionState;
  return this;
}

TurnTableCodec::ConnectionState TurnTableState::getThermostatConnectionState()
{
  return thermostatConnectionState;
}

TurnTableState* TurnTableState::setThermostatConnectionState(TurnTableCodec::ConnectionState thermostatConnectionState)
{
  this->thermostatConnectionState=thermostatConnectionState;
  return this;
}

TurnTableCodec::TurnTableLoadMode TurnTableState::getTurnTableLoadMode()
{
  return turnTableLoadMode;
}

TurnTableState* TurnTableState::setTurnTableLoadMode(TurnTableCodec::TurnTableLoadMode turnTableLoadMode)
{
  this->turnTableLoadMode=turnTableLoadMode;
  return this;
}

TurnTableCodec::TargetState TurnTableState::getTurnTablePositionModeState()
{
  return turnTablePositionModeState;
}

TurnTableState* TurnTableState::setTurnTablePositionModeState(TurnTableCodec::TargetState turnTablePositionModeState)
{
  this->turnTablePositionModeState=turnTablePositionModeState;
  return this;
}

TurnTableCodec::TargetState TurnTableState::getTurnTableRateModeState()
{
  return turnTableRateModeState;
}

TurnTableState* TurnTableState::setTurnTableRateModeState(TurnTableCodec::TargetState turnTableRateModeState)
{
  this->turnTableRateModeState=turnTableRateModeState;
  return this;
}

TurnTableCodec::TargetState TurnTableState::getTurnTableStopState()
{
  return turnTableStopState;
}

TurnTableState* TurnTableState::setTurnTableStopState(TurnTableCodec::TargetState turnTableStopState)
{
  this->turnTableStopState=turnTableStopState;
  return this;
}

TurnTableCodec::TurnTablePowerSupplyState TurnTableState::getTurnTablePowerSupplyState()
{
  return turnTablePowerSupplyState;
}

TurnTableState* TurnTableState::setTurnTablePowerSupplyState(TurnTableCodec::TurnTablePowerSupplyState turnTablePowerSupplyState)
{
  this->turnTablePowerSupplyState=turnTablePowerSupplyState;
  return this;
}

TurnTableCodec::TurnTableCircuitState TurnTableState::getTurnTableCircuitState()
{
  return turnTableCircuitState;
}

TurnTableState* TurnTableState::setTurnTableCircuitState(TurnTableCodec::TurnTableCircuitState turnTableCircuitState)
{
  this->turnTableCircuitState=turnTableCircuitState;
  return this;
}

TurnTableCodec::TurnTableAmplifierState TurnTableState::getTurnTableAmplifierState()
{
  return turnTableAmplifierState;
}

TurnTableState* TurnTableState::setTurnTableAmplifierState(TurnTableCodec::TurnTableAmplifierState turnTableAmplifierState)
{
  this->turnTableAmplifierState=turnTableAmplifierState;
  return this;
}

TurnTableCodec::TurnTableRunningState TurnTableState::getTurnTableRunningState()
{
  return turnTableRunningState;
}

TurnTableState* TurnTableState::setTurnTableRunningState(TurnTableCodec::TurnTableRunningState turnTableRunningState)
{
  this->turnTableRunningState=turnTableRunningState;
  return this;
}

TurnTableCodec::TurnTableSearchZeroState TurnTableState::getTurnTableSearchZeroState()
{
  return turnTableSearchZeroState;
}

TurnTableState* TurnTableState::setTurnTableSearchZeroState(TurnTableCodec::TurnTableSearchZeroState turnTableSearchZeroState)
{
  this->turnTableSearchZeroState=turnTableSearchZeroState;
  return this;
}

TurnTableCodec::TurnTableRunningMode TurnTableState::getTurnTableRunningMode()
{
  return turnTableRunningMode;
}

TurnTableState* TurnTableState::setTurnTableRunningMode(TurnTableCodec::TurnTableRunningMode turnTableRunningMode)
{
  this->turnTableRunningMode=turnTableRunningMode;
  return this;
}

float TurnTableState::getTurnTableCurrentPosition()
{
  return turnTableCurrentPosition;
}

TurnTableState* TurnTableState::setTurnTableCurrentPosition(float turnTableCurrentPosition)
{
  this->turnTableCurrentPosition=turnTableCurrentPosition;
  return this;
}

float TurnTableState::getTurnTableCurrentRate()
{
  return turnTableCurrentRate;
}

TurnTableState* TurnTableState::setTurnTableCurrentRate(float turnTableCurrentRate)
{
  this->turnTableCurrentRate=turnTableCurrentRate;
  return this;
}

float TurnTableState::getTurnTableTargetPosition()
{
  return turnTableTargetPosition;
}

TurnTableState* TurnTableState::setTurnTableTargetPosition(float turnTableTargetPosition)
{
  this->turnTableTargetPosition=turnTableTargetPosition;
  return this;
}

float TurnTableState::getTurnTableTargetRate()
{
  return turnTableTargetRate;
}

TurnTableState* TurnTableState::setTurnTableTargetRate(float turnTableTargetRate)
{
  this->turnTableTargetRate=turnTableTargetRate;
  return this;
}

float TurnTableState::getTurnTableTargetAcceleration()
{
  return turnTableTargetAcceleration;
}

TurnTableState* TurnTableState::setTurnTableTargetAcceleration(float turnTableTargetAcceleration)
{
  this->turnTableTargetAcceleration=turnTableTargetAcceleration;
  return this;
}

float TurnTableState::getThermostatCurrentTemperature()
{
  return thermostatCurrentTemperature;
}

TurnTableState* TurnTableState::setThermostatCurrentTemperature(float thermostatCurrentTemperature)
{
  this->thermostatCurrentTemperature=thermostatCurrentTemperature;
  return this;
}

float TurnTableState::getThermostatTargetTemperature()
{
  return thermostatTargetTemperature;
}

TurnTableState* TurnTableState::setThermostatTargetTemperature(float thermostatTargetTemperature)
{
  this->thermostatTargetTemperature=thermostatTargetTemperature;
  return this;
}

float TurnTableState::getThermostatTemperatureRate()
{
  return thermostatTemperatureRate;
}

TurnTableState* TurnTableState::setThermostatTemperatureRate(float thermostatTemperatureRate)
{
  this->thermostatTemperatureRate=thermostatTemperatureRate;
  return this;
}
